package com.kgis.fm.flex.model.metadata
{
	import com.kgis.fm.flex.model.LifecycleModel;

	/**
	 * KGM_RELATIONSHIPMAPPING
	 *
	 * @author zhxiaomiao
	 * @version 1.0
	 */
	[Bindable]
	[RemoteClass(alias="com.kgis.fm.platform.model.metadata.RelationshipMapping")]
	public class RelationshipMapping extends LifecycleModel
	{
		public function RelationshipMapping()
		{
			
		}
		
		/**
		 *连接关系
		 */
		public static const  TYPE_NODEEDGE_CONNECTIVITY:int = 1;
		/**
		 * 子父关系
		 */
		public static const  TYPE_CHILID_PRAENT:int = 2;
		/**
		 * 父子关系
		 */
		public static const  TYPE_PRAENT_CHILID:int = 3;
		
		private var _id:int;
		private var _fno:int;
		private var _type:int;
		private var _cno:int;


		public function get id():int
		{
			return _id;
		}

		public function set id(value:int):void
		{
			_id = value;
		}

		public function get fno():int
		{
			return _fno;
		}

		public function set fno(value:int):void
		{
			_fno = value;
		}

		/**
		 * 关系类型
		 */
		public function get type():int
		{
			return _type;
		}

		/**
		 * @private
		 */
		public function set type(value:int):void
		{
			_type = value;
		}

		public function get cno():int
		{
			return _cno;
		}

		public function set cno(value:int):void
		{
			_cno = value;
		}
	}
}
